.class public Lcom/xingbook/park/e/a;
.super Ljava/lang/Object;


# instance fields
.field private a:[Lorg/apache/http/message/BasicHeader;

.field private b:[Lorg/apache/http/message/BasicNameValuePair;

.field private c:Ljava/net/URL;

.field private d:Ljava/io/InputStream;

.field private e:Z

.field private f:Lorg/apache/http/impl/client/DefaultHttpClient;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/e/a;->a:[Lorg/apache/http/message/BasicHeader;

    iput-object v0, p0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/e/a;->e:Z

    return-void
.end method

.method private a(IZ)I
    .locals 17

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/e/a;->b()V

    const/4 v1, 0x3

    move/from16 v0, p1

    if-eq v0, v1, :cond_0

    const/4 v1, 0x2

    move/from16 v0, p1

    if-ne v0, v1, :cond_5

    :cond_0
    const/4 v1, 0x1

    move v3, v1

    :goto_0
    const/4 v2, 0x0

    const/4 v1, 0x0

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/xingbook/park/e/a;->c:Ljava/net/URL;

    invoke-virtual {v4}, Ljava/net/URL;->toString()Ljava/lang/String;

    move-result-object v6

    if-eqz v3, :cond_1f

    const/4 v1, 0x3

    move/from16 v0, p1

    if-ne v0, v1, :cond_9

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    if-eqz v1, :cond_1

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    array-length v1, v1

    if-lez v1, :cond_1

    const/16 v1, 0x3f

    invoke-virtual {v6, v1}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    const/4 v4, -0x1

    if-eq v1, v4, :cond_6

    const/16 v1, 0x26

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    :goto_1
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    array-length v5, v4

    const/4 v1, 0x0

    :goto_2
    if-lt v1, v5, :cond_7

    :cond_1
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/c/j;->m()Lcom/xingbook/c/r;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/c/r;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcn/a/a/d/j;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_3
    if-eqz p2, :cond_a

    new-instance v1, Ljava/lang/StringBuilder;

    sget-object v4, Lcom/xingbook/c/c;->H:Ljava/lang/String;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    move-object v4, v1

    move-object v5, v2

    :goto_4
    const/4 v1, 0x1

    move/from16 v0, p1

    if-eq v0, v1, :cond_2

    const/4 v1, 0x3

    move/from16 v0, p1

    if-ne v0, v1, :cond_c

    :cond_2
    :try_start_0
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    invoke-direct {v2, v6}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    new-instance v6, Ljava/util/ArrayList;

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    array-length v1, v1

    invoke-direct {v6, v1}, Ljava/util/ArrayList;-><init>(I)V

    move-object/from16 v0, p0

    iget-object v7, v0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    array-length v8, v7

    const/4 v1, 0x0

    :goto_5
    if-lt v1, v8, :cond_b

    new-instance v7, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v1, "utf-8"

    invoke-direct {v7, v6, v1}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    move-object v0, v2

    check-cast v0, Lorg/apache/http/client/methods/HttpPost;

    move-object v1, v0

    invoke-virtual {v1, v7}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    :goto_6
    if-eqz v3, :cond_3

    const-string v1, "If-Modified-Since"

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v4}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v2, v1, v6}, Lorg/apache/http/client/methods/HttpUriRequest;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    move-object/from16 v0, p0

    iget-boolean v1, v0, Lcom/xingbook/park/e/a;->e:Z

    if-eqz v1, :cond_4

    move-object/from16 v0, p0

    iget-object v6, v0, Lcom/xingbook/park/e/a;->a:[Lorg/apache/http/message/BasicHeader;

    array-length v7, v6

    const/4 v1, 0x0

    :goto_7
    if-lt v1, v7, :cond_e

    :cond_4
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/e/a;->f:Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-virtual {v1, v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v1

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/xingbook/park/e/a;->f:Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v2

    const/16 v6, 0x1388

    invoke-static {v2, v6}, Lorg/apache/http/params/HttpConnectionParams;->setConnectionTimeout(Lorg/apache/http/params/HttpParams;I)V

    const/16 v6, 0x1388

    invoke-static {v2, v6}, Lorg/apache/http/params/HttpConnectionParams;->setSoTimeout(Lorg/apache/http/params/HttpParams;I)V

    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v2

    invoke-interface {v2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v2

    const/16 v6, 0xc8

    if-ne v2, v6, :cond_12

    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v6

    if-eqz v6, :cond_1e

    invoke-interface {v6}, Lorg/apache/http/HttpEntity;->getContentLength()J

    move-result-wide v8

    invoke-interface {v6}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object v10

    const/4 v6, 0x0

    if-eqz v3, :cond_1d

    const/4 v7, 0x0

    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getAllHeaders()[Lorg/apache/http/Header;

    move-result-object v11

    array-length v12, v11

    const/4 v1, 0x0

    move/from16 v16, v1

    move-object v1, v7

    move/from16 v7, v16

    :goto_8
    if-lt v7, v12, :cond_f

    if-eqz v1, :cond_1d

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v1}, Lcom/xingbook/park/e/a;->c(Ljava/lang/String;Ljava/lang/String;)V

    move-object v1, v4

    :goto_9
    if-nez v1, :cond_11

    move-object/from16 v0, p0

    iput-object v10, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_0 .. :try_end_0} :catch_4
    .catch Lorg/apache/http/conn/ConnectTimeoutException; {:try_start_0 .. :try_end_0} :catch_6
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_8

    move v1, v2

    :goto_a
    return v1

    :cond_5
    const/4 v1, 0x0

    move v3, v1

    goto/16 :goto_0

    :cond_6
    const/16 v1, 0x3f

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    goto/16 :goto_1

    :cond_7
    aget-object v7, v4, v1

    if-eqz v7, :cond_8

    invoke-virtual {v7}, Lorg/apache/http/message/BasicNameValuePair;->getName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const/16 v9, 0x3d

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v7}, Lorg/apache/http/message/BasicNameValuePair;->getValue()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const/16 v8, 0x26

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    :cond_8
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_2

    :cond_9
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/c/j;->m()Lcom/xingbook/c/r;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/c/r;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcn/a/a/d/j;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_3

    :cond_a
    new-instance v1, Ljava/lang/StringBuilder;

    sget-object v4, Lcom/xingbook/c/c;->G:Ljava/lang/String;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    move-object v4, v1

    move-object v5, v2

    goto/16 :goto_4

    :cond_b
    :try_start_1
    aget-object v9, v7, v1

    invoke-virtual {v6, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_5

    :cond_c
    new-instance v2, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v2, v6}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_1 .. :try_end_1} :catch_4
    .catch Lorg/apache/http/conn/ConnectTimeoutException; {:try_start_1 .. :try_end_1} :catch_6
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_8

    goto/16 :goto_6

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v4}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_d

    if-nez v3, :cond_14

    :cond_d
    const/4 v1, 0x0

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    const/4 v1, 0x3

    goto/16 :goto_a

    :cond_e
    :try_start_2
    aget-object v8, v6, v1

    invoke-virtual {v8}, Lorg/apache/http/message/BasicHeader;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8}, Lorg/apache/http/message/BasicHeader;->getValue()Ljava/lang/String;

    move-result-object v8

    invoke-interface {v2, v9, v8}, Lorg/apache/http/client/methods/HttpUriRequest;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_7

    :cond_f
    aget-object v13, v11, v7

    invoke-interface {v13}, Lorg/apache/http/Header;->getName()Ljava/lang/String;

    move-result-object v14

    const-string v15, "Date"

    invoke-virtual {v14, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_10

    invoke-interface {v13}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object v1

    :cond_10
    add-int/lit8 v7, v7, 0x1

    goto/16 :goto_8

    :cond_11
    new-instance v6, Lcom/xingbook/park/e/b;

    invoke-direct {v6, v10, v1, v8, v9}, Lcom/xingbook/park/e/b;-><init>(Ljava/io/InputStream;Ljava/lang/String;J)V

    move-object/from16 v0, p0

    iput-object v6, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    move v1, v2

    goto/16 :goto_a

    :cond_12
    const/16 v1, 0x130

    if-ne v2, v1, :cond_13

    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    move v1, v2

    goto/16 :goto_a

    :cond_13
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v6, "entity is null"

    invoke-virtual {v1, v6}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/net/UnknownHostException; {:try_start_2 .. :try_end_2} :catch_4
    .catch Lorg/apache/http/conn/ConnectTimeoutException; {:try_start_2 .. :try_end_2} :catch_6
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_8

    move v1, v2

    goto/16 :goto_a

    :cond_14
    :try_start_3
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_3
    .catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_1

    const/16 v1, 0x387

    goto/16 :goto_a

    :catch_1
    move-exception v1

    move-object v2, v1

    const/4 v1, 0x3

    invoke-virtual {v2}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto/16 :goto_a

    :catch_2
    move-exception v1

    invoke-virtual {v1}, Lorg/apache/http/client/ClientProtocolException;->printStackTrace()V

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v4}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_15

    if-nez v3, :cond_16

    :cond_15
    const/4 v1, 0x0

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    const/4 v1, 0x4

    goto/16 :goto_a

    :cond_16
    :try_start_4
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_4
    .catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_3

    const/16 v1, 0x388

    goto/16 :goto_a

    :catch_3
    move-exception v1

    move-object v2, v1

    const/4 v1, 0x4

    invoke-virtual {v2}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto/16 :goto_a

    :catch_4
    move-exception v1

    invoke-virtual {v1}, Ljava/net/UnknownHostException;->printStackTrace()V

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v4}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_17

    if-nez v3, :cond_18

    :cond_17
    const/4 v1, 0x0

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    const/4 v1, -0x1

    goto/16 :goto_a

    :cond_18
    :try_start_5
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_5
    .catch Ljava/io/FileNotFoundException; {:try_start_5 .. :try_end_5} :catch_5

    const/16 v1, 0x383

    goto/16 :goto_a

    :catch_5
    move-exception v1

    move-object v2, v1

    const/4 v1, -0x1

    invoke-virtual {v2}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto/16 :goto_a

    :catch_6
    move-exception v1

    invoke-virtual {v1}, Lorg/apache/http/conn/ConnectTimeoutException;->printStackTrace()V

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v4}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_19

    if-nez v3, :cond_1a

    :cond_19
    const/4 v1, 0x0

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    const/4 v1, 0x5

    goto/16 :goto_a

    :cond_1a
    :try_start_6
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_6
    .catch Ljava/io/FileNotFoundException; {:try_start_6 .. :try_end_6} :catch_7

    const/16 v1, 0x389

    goto/16 :goto_a

    :catch_7
    move-exception v1

    move-object v2, v1

    const/4 v1, 0x5

    invoke-virtual {v2}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto/16 :goto_a

    :catch_8
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    move-object/from16 v0, p0

    invoke-direct {v0, v5, v4}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1b

    if-nez v3, :cond_1c

    :cond_1b
    const/4 v1, 0x0

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    const/4 v1, 0x1

    goto/16 :goto_a

    :cond_1c
    :try_start_7
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_7
    .catch Ljava/io/FileNotFoundException; {:try_start_7 .. :try_end_7} :catch_9

    const/16 v1, 0x385

    goto/16 :goto_a

    :catch_9
    move-exception v1

    move-object v2, v1

    const/4 v1, 0x1

    invoke-virtual {v2}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto/16 :goto_a

    :cond_1d
    move-object v1, v6

    goto/16 :goto_9

    :cond_1e
    move v1, v2

    goto/16 :goto_a

    :cond_1f
    move-object v4, v1

    move-object v5, v2

    goto/16 :goto_4
.end method

.method public static a(Lcom/xingbook/park/e/c;)I
    .locals 3

    const/4 v0, 0x0

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/e/c;->e()I

    move-result v1

    invoke-static {v1}, Lcom/xingbook/park/e/a;->a(I)Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p0}, Lcom/xingbook/park/e/c;->e()I

    move-result v1

    const/16 v2, 0xc8

    if-eq v1, v2, :cond_2

    const/16 v2, 0x130

    if-ne v1, v2, :cond_4

    :cond_2
    invoke-virtual {p0}, Lcom/xingbook/park/e/c;->a()I

    move-result v0

    if-nez v0, :cond_3

    const/4 v0, 0x1

    goto :goto_0

    :cond_3
    const/4 v0, 0x2

    goto :goto_0

    :cond_4
    const/16 v2, 0x388

    if-eq v1, v2, :cond_5

    const/16 v2, 0x387

    if-eq v1, v2, :cond_5

    const/16 v2, 0x383

    if-eq v1, v2, :cond_5

    const/16 v2, 0x385

    if-eq v1, v2, :cond_5

    const/16 v2, 0x389

    if-ne v1, v2, :cond_0

    :cond_5
    invoke-virtual {p0}, Lcom/xingbook/park/e/c;->a()I

    move-result v1

    if-nez v1, :cond_0

    const/4 v0, 0x3

    goto :goto_0
.end method

.method public static a(Ljava/lang/String;)Ljava/net/HttpURLConnection;
    .locals 3

    new-instance v0, Ljava/net/URL;

    invoke-direct {v0, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v0

    check-cast v0, Ljava/net/HttpURLConnection;

    if-eqz v0, :cond_0

    const/16 v1, 0x1388

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V

    const-string v1, "User-Agent"

    const-string v2, "OpenRead/Xingbook Android"

    invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-object v0
.end method

.method public static a(I)Z
    .locals 1

    const/16 v0, 0xc8

    if-eq p0, v0, :cond_0

    const/16 v0, 0x130

    if-eq p0, v0, :cond_0

    const/16 v0, 0x388

    if-eq p0, v0, :cond_0

    const/16 v0, 0x387

    if-eq p0, v0, :cond_0

    const/16 v0, 0x383

    if-eq p0, v0, :cond_0

    const/16 v0, 0x385

    if-eq p0, v0, :cond_0

    const/16 v0, 0x389

    if-eq p0, v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 7

    const/4 v0, 0x0

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/xingbook/c/j;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_0

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/xingbook/c/j;->g(Ljava/lang/String;)V

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v2}, Ljava/io/File;->length()J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long v3, v3, v5

    if-nez v3, :cond_1

    invoke-virtual {v2}, Ljava/io/File;->delete()Z

    goto :goto_0

    :cond_1
    move-object v0, v1

    goto :goto_0
.end method

.method private c(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/c/j;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public varargs a(Ljava/lang/String;Z[Lorg/apache/http/message/BasicNameValuePair;)I
    .locals 1

    :try_start_0
    new-instance v0, Ljava/net/URL;

    invoke-direct {v0, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/xingbook/park/e/a;->c:Ljava/net/URL;
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    iput-object p3, p0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    const/4 v0, 0x3

    invoke-direct {p0, v0, p2}, Lcom/xingbook/park/e/a;->a(IZ)I

    move-result v0

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x2

    goto :goto_0
.end method

.method public varargs a(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I
    .locals 2

    :try_start_0
    new-instance v0, Ljava/net/URL;

    invoke-direct {v0, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/xingbook/park/e/a;->c:Ljava/net/URL;
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    iput-object p2, p0, Lcom/xingbook/park/e/a;->b:[Lorg/apache/http/message/BasicNameValuePair;

    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/xingbook/park/e/a;->a(IZ)I

    move-result v0

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x2

    goto :goto_0
.end method

.method public a(Lorg/xml/sax/helpers/DefaultHandler;)I
    .locals 4

    const/4 v2, 0x1

    const/16 v1, 0x64

    invoke-static {}, Ljavax/xml/parsers/SAXParserFactory;->newInstance()Ljavax/xml/parsers/SAXParserFactory;

    move-result-object v0

    :try_start_0
    invoke-virtual {v0}, Ljavax/xml/parsers/SAXParserFactory;->newSAXParser()Ljavax/xml/parsers/SAXParser;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljavax/xml/parsers/ParserConfigurationException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Lorg/xml/sax/SAXException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5

    if-nez v3, :cond_1

    :try_start_1
    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    :cond_0
    :goto_0
    return v2

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    :cond_1
    :try_start_2
    iget-object v3, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v0, v3, p1}, Ljavax/xml/parsers/SAXParser;->parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V

    instance-of v0, p1, Lcom/xingbook/park/e/d;

    if-eqz v0, :cond_2

    check-cast p1, Lcom/xingbook/park/e/d;

    iget-object v0, p1, Lcom/xingbook/park/e/d;->i:Lcom/xingbook/park/e/c;

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->a()I

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    instance-of v0, v0, Lcom/xingbook/park/e/b;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    check-cast v0, Lcom/xingbook/park/e/b;

    const/4 v3, 0x1

    invoke-virtual {v0, v3}, Lcom/xingbook/park/e/b;->a(Z)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljavax/xml/parsers/ParserConfigurationException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Lorg/xml/sax/SAXException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5

    :cond_2
    :try_start_3
    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_8

    move v0, v1

    :cond_3
    :goto_1
    move v2, v0

    goto :goto_0

    :catch_1
    move-exception v0

    :try_start_4
    invoke-virtual {v0}, Ljavax/xml/parsers/ParserConfigurationException;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    const/16 v0, 0x65

    :try_start_5
    iget-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2

    goto :goto_1

    :catch_2
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1

    :catch_3
    move-exception v0

    :try_start_6
    invoke-virtual {v0}, Lorg/xml/sax/SAXException;->printStackTrace()V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    const/16 v0, 0x66

    :try_start_7
    iget-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_4

    goto :goto_1

    :catch_4
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1

    :catch_5
    move-exception v0

    :try_start_8
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    :try_start_9
    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_6

    move v0, v2

    goto :goto_1

    :catch_6
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    move v0, v2

    goto :goto_1

    :catchall_0
    move-exception v0

    :try_start_a
    iget-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_7

    :cond_4
    :goto_2
    throw v0

    :catch_7
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_2

    :catch_8
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    :cond_5
    move v0, v1

    goto :goto_1

    :cond_6
    move v0, v2

    goto :goto_1
.end method

.method public a()V
    .locals 4

    const/16 v1, 0x1388

    new-instance v0, Lorg/apache/http/params/BasicHttpParams;

    invoke-direct {v0}, Lorg/apache/http/params/BasicHttpParams;-><init>()V

    invoke-static {v0, v1}, Lorg/apache/http/params/HttpConnectionParams;->setConnectionTimeout(Lorg/apache/http/params/HttpParams;I)V

    invoke-static {v0, v1}, Lorg/apache/http/params/HttpConnectionParams;->setSoTimeout(Lorg/apache/http/params/HttpParams;I)V

    new-instance v1, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v1, v0}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>(Lorg/apache/http/params/HttpParams;)V

    iput-object v1, p0, Lcom/xingbook/park/e/a;->f:Lorg/apache/http/impl/client/DefaultHttpClient;

    iget-object v1, p0, Lcom/xingbook/park/e/a;->f:Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v1

    new-instance v2, Lorg/apache/http/impl/client/DefaultHttpClient;

    new-instance v3, Lorg/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager;

    invoke-interface {v1}, Lorg/apache/http/conn/ClientConnectionManager;->getSchemeRegistry()Lorg/apache/http/conn/scheme/SchemeRegistry;

    move-result-object v1

    invoke-direct {v3, v0, v1}, Lorg/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager;-><init>(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/scheme/SchemeRegistry;)V

    invoke-direct {v2, v3, v0}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>(Lorg/apache/http/conn/ClientConnectionManager;Lorg/apache/http/params/HttpParams;)V

    iput-object v2, p0, Lcom/xingbook/park/e/a;->f:Lorg/apache/http/impl/client/DefaultHttpClient;

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/e/a;->a:[Lorg/apache/http/message/BasicHeader;

    array-length v1, v0

    const/4 v0, 0x0

    :goto_1
    if-ge v0, v1, :cond_0

    iget-object v2, p0, Lcom/xingbook/park/e/a;->a:[Lorg/apache/http/message/BasicHeader;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Lorg/apache/http/message/BasicHeader;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v1, p0, Lcom/xingbook/park/e/a;->a:[Lorg/apache/http/message/BasicHeader;

    new-instance v2, Lorg/apache/http/message/BasicHeader;

    invoke-direct {v2, p1, p2}, Lorg/apache/http/message/BasicHeader;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v2, v1, v0

    goto :goto_0

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method

.method public varargs a([Lorg/apache/http/message/BasicHeader;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/e/a;->a:[Lorg/apache/http/message/BasicHeader;

    return-void
.end method

.method public varargs b(Ljava/lang/String;Z[Lorg/apache/http/message/BasicNameValuePair;)I
    .locals 8

    const/16 v4, 0x3f

    const/16 v7, 0x26

    const/4 v0, 0x2

    if-eqz p3, :cond_0

    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2, p1}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v4}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    const/4 v3, -0x1

    if-eq v1, v3, :cond_1

    invoke-virtual {v2, v7}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :goto_0
    array-length v3, p3

    const/4 v1, 0x0

    :goto_1
    if-lt v1, v3, :cond_2

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    :cond_0
    :try_start_0
    new-instance v1, Ljava/net/URL;

    invoke-direct {v1, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    iput-object v1, p0, Lcom/xingbook/park/e/a;->c:Ljava/net/URL;
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    invoke-direct {p0, v0, p2}, Lcom/xingbook/park/e/a;->a(IZ)I

    move-result v0

    :goto_2
    return v0

    :cond_1
    invoke-virtual {v2, v4}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_0

    :cond_2
    aget-object v4, p3, v1

    if-eqz v4, :cond_3

    invoke-virtual {v4}, Lorg/apache/http/message/BasicNameValuePair;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    const/16 v6, 0x3d

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v4}, Lorg/apache/http/message/BasicNameValuePair;->getValue()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v7}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :catch_0
    move-exception v1

    goto :goto_2
.end method

.method public varargs b(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I
    .locals 8

    const/16 v4, 0x3f

    const/16 v7, 0x26

    const/4 v1, 0x0

    if-eqz p2, :cond_0

    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2, p1}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v4}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    const/4 v3, -0x1

    if-eq v0, v3, :cond_1

    invoke-virtual {v2, v7}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :goto_0
    array-length v3, p2

    move v0, v1

    :goto_1
    if-lt v0, v3, :cond_2

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    :cond_0
    :try_start_0
    new-instance v0, Ljava/net/URL;

    invoke-direct {v0, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/xingbook/park/e/a;->c:Ljava/net/URL;
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    invoke-direct {p0, v1, v1}, Lcom/xingbook/park/e/a;->a(IZ)I

    move-result v0

    :goto_2
    return v0

    :cond_1
    invoke-virtual {v2, v4}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_0

    :cond_2
    aget-object v4, p2, v0

    if-eqz v4, :cond_3

    invoke-virtual {v4}, Lorg/apache/http/message/BasicNameValuePair;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    const/16 v6, 0x3d

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v4}, Lorg/apache/http/message/BasicNameValuePair;->getValue()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v7}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :catch_0
    move-exception v0

    const/4 v0, 0x2

    goto :goto_2
.end method

.method public b()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;

    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/e/a;->d:Ljava/io/InputStream;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method
